<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../value/value_en.php";
} else if($lang == "VN") {
	include "../value/value_vn.php";
}
else {
	include "../value/value_kr.php";
}
include '../operations/connection.php';	

$type_assets=mysql_query("SELECT t.*,(SELECT COUNT(*) FROM assets a WHERE a.type=t.id ) as count FROM type_assets t ORDER BY t.name;");
$typeassets=array();
while ($r = mysql_fetch_array($type_assets)){
		$typeassets[]=array($r['id'],$r['name'],$r['count']);
}
mysql_close($connection);
?>
<td  class="tdfirst"><?php echo $l_typeassets;?></td>
								<td style="width: 100px">
								<select name="stypeAssets" id="stypeAssets" style="font-size: 12px;height: 28px; width: 190px;padding: 4px;">
									<option value="0"><?php echo $l_all;?></option>
								<?php 
									$i=0;
									foreach ($typeassets as $value => $giatri)
									{
										?>
									<option value="<?php echo $giatri[0];?>"><?php echo $giatri[1];?></option>
									<?php 
										$i++;
									}
														
									?>
								</select>
								</td>
								<td>
								</td>